/*
* @Author: wanghongfucoder
* @Date:   2017-03-16 10:15:57
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-16 10:34:02
*/

public class Originator {
	private String state;

	public  String getState(){
		return state;
	}

	public void setState(String state){
		this.state=state;
	}
	public Memento saveStateToMemento(){
		return new Memento(state);
	}

	public void getStateFromMemento(Memento Memento){
		state=Memento.getState();
	}
}